gtk4.git
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 6 Mar 2021 19:29:50 +0000 (19:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

vulkan: Add visible fallback rendering

See merge request GNOME/gtk!3264

5 years agoUpdate French translation
Guillaume Bernard [Sat, 6 Mar 2021 18:49:22 +0000 (18:49 +0000)]
Update French translation

(cherry picked from commit 5b18df9b5ebe2a8786c53a62b63ba84c1a1fd3a3)

5 years agoUpdate Serbian translation
Мирослав Николић [Sat, 6 Mar 2021 18:43:30 +0000 (18:43 +0000)]
Update Serbian translation

(cherry picked from commit b9a451423fe54e8f93fd39d8ef01f4fb835b4655)

5 years agoUpdate Korean translation
Changwoo Ryu [Sat, 6 Mar 2021 18:11:19 +0000 (18:11 +0000)]
Update Korean translation

(cherry picked from commit 60a714a25ff40a36f969b154d04036c56dbf067f)

5 years agoUpdate Catalan translation
Jordi Mas [Sat, 6 Mar 2021 08:44:50 +0000 (09:44 +0100)]
Update Catalan translation

5 years agovulkan: Handle simple transforms in the clipping code
Benjamin Otte [Sat, 6 Mar 2021 00:35:04 +0000 (19:35 -0500)]
vulkan: Handle simple transforms in the clipping code

Requires pushing the GskTransform into the clipping code so that we
can actually look at its category.

5 years agovulkan: Add visible fallback rendering
Matthias Clasen [Fri, 5 Mar 2021 23:39:22 +0000 (18:39 -0500)]
vulkan: Add visible fallback rendering

Hook up the "Show fallback rendering" switch for Vulkan.

This brings home the sobering truth that the Vulkan renderer
is doing *all* fallback, since we switched from offset nodes
to transform nodes.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 5 Mar 2021 20:30:54 +0000 (20:30 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!3263

5 years agosearchentry: Typo fix
Matthias Clasen [Thu, 4 Mar 2021 15:05:19 +0000 (10:05 -0500)]
searchentry: Typo fix

5 years agoflatpak: Fix the gtk4-demo build
Matthias Clasen [Fri, 5 Mar 2021 20:06:20 +0000 (15:06 -0500)]
flatpak: Fix the gtk4-demo build

This was overlooked in 8e7e821033abb291391c26aa288a8.

5 years agoMerge branch 'wip/exalm/window-shadow-dark-4' into 'master'
Matthias Clasen [Fri, 5 Mar 2021 19:41:39 +0000 (19:41 +0000)]
Merge branch 'wip/exalm/window-shadow-dark-4' into 'master'

Adwaita: Use transparent black for window border in dark too

See merge request GNOME/gtk!3261

5 years agoMerge branch 'wip/jimmac/fix-flatpak-build' into 'master'
Matthias Clasen [Fri, 5 Mar 2021 19:11:36 +0000 (19:11 +0000)]
Merge branch 'wip/jimmac/fix-flatpak-build' into 'master'

Flatpak: Update build manifests

See merge request GNOME/gtk!3259

5 years agoAdwaita: Use transparent black for window border in dark too
Alexander Mikhaylenko [Fri, 5 Mar 2021 17:59:25 +0000 (22:59 +0500)]
Adwaita: Use transparent black for window border in dark too

Avoid smear when the background behind the window is dark. Adjust opacity
to make it appear roughly the same as before on white background.

5 years agoMerge branch 'wip/jimmac/sidebar-focus' into 'master'
Matthias Clasen [Fri, 5 Mar 2021 17:17:04 +0000 (17:17 +0000)]
Merge branch 'wip/jimmac/sidebar-focus' into 'master'

Adwaita: Regular focus ring for sidebar rows

Closes #3708

See merge request GNOME/gtk!3258

5 years agoFlatpak: Update build manifests
Jakub Steiner [Fri, 5 Mar 2021 17:00:17 +0000 (18:00 +0100)]
Flatpak: Update build manifests

- point to the upstream repo for wayland
- disable disabling of sassc
- switch wayland from autotools to meson

5 years agoAdwaita: Regular focus ring for sidebar rows
Jakub Steiner [Fri, 5 Mar 2021 11:16:10 +0000 (12:16 +0100)]
Adwaita: Regular focus ring for sidebar rows

- style sidebar rows as regular items like buttons wrt focus
- define transition as part of the focus-ring(),
  only animate outline related properties rather than `all`

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3708

5 years agoUpdate Indonesian translation
Kukuh Syafaat [Fri, 5 Mar 2021 11:52:39 +0000 (11:52 +0000)]
Update Indonesian translation

(cherry picked from commit e54dc87a152aa7379aa015e9fc5ea3aaa793c231)

5 years agoMerge branch 'iconbrowser-fix' into 'master'
Matthias Clasen [Fri, 5 Mar 2021 01:11:11 +0000 (01:11 +0000)]
Merge branch 'iconbrowser-fix' into 'master'

iconbrowser: fix search<>category interaction

Closes #3717

See merge request GNOME/gtk!3257

5 years agoiconbrowser: fix search<>category interaction
Matthias Clasen [Thu, 4 Mar 2021 21:13:46 +0000 (16:13 -0500)]
iconbrowser: fix search<>category interaction

Make search act like a separate, filtered view of
all icons. This is how it worked in gtk3, and how
it should be.

Fixes: #3717
5 years agoMerge branch 'preedit-selection-fix' into 'master'
Matthias Clasen [Thu, 4 Mar 2021 22:48:25 +0000 (22:48 +0000)]
Merge branch 'preedit-selection-fix' into 'master'

Preedit selection fix

Closes #1123

See merge request GNOME/gtk!3255

5 years agotextview: Delete selection when preedit starts
Matthias Clasen [Thu, 4 Mar 2021 19:55:40 +0000 (14:55 -0500)]
textview: Delete selection when preedit starts

This prevents confusing misrendering when the preedit text
pushes the selection text out of the rendered selection.

Fixes: #1123
5 years agotextview: Send anchor with surrounding
Matthias Clasen [Thu, 4 Mar 2021 19:46:46 +0000 (14:46 -0500)]
textview: Send anchor with surrounding

We have the api to do it now.

5 years agotext: Optimize away 0-change insertions and deletions
Matthias Clasen [Thu, 4 Mar 2021 19:14:09 +0000 (14:14 -0500)]
text: Optimize away 0-change insertions and deletions

We can short-circuit insert and delete calls that are
not causing any change.

5 years agotext: Delete selection when preedit starts
Matthias Clasen [Thu, 4 Mar 2021 19:49:14 +0000 (14:49 -0500)]
text: Delete selection when preedit starts

This prevents confusing misrendering when the preedit text
pushes the selection text out of the rendered selection.

Fixes: #1123
5 years agotext: Send anchor with surrounding
Matthias Clasen [Thu, 4 Mar 2021 19:48:28 +0000 (14:48 -0500)]
text: Send anchor with surrounding

We have the api to do it now.

5 years agoimwayland: Pass anchor with surrounding
Matthias Clasen [Thu, 4 Mar 2021 18:30:55 +0000 (13:30 -0500)]
imwayland: Pass anchor with surrounding

This was missing in the initial implementation since
GtkIMContext did not have it in its api, but it was
added now, so we can send the information.

5 years agoimmulticontext: Implement [gs]et_surrounding_with_selection
Matthias Clasen [Thu, 4 Mar 2021 20:14:52 +0000 (15:14 -0500)]
immulticontext: Implement [gs]et_surrounding_with_selection

This is the recommended api, going forward.

5 years agoimcontext: Add [gs]et_surrounding_with_selection
Matthias Clasen [Thu, 4 Mar 2021 18:27:38 +0000 (13:27 -0500)]
imcontext: Add [gs]et_surrounding_with_selection

The Wayland text protocol expects to get both ends
of the selection with its surrounding call, so make
that available via GtkIMContext. We add this as new
api and vfuncs, and fall back, so that existing
implementations keep working.

5 years agoMerge branch 'wip/chergert/remove-zero-suffix-array' into 'master'
Matthias Clasen [Wed, 3 Mar 2021 21:53:27 +0000 (21:53 +0000)]
Merge branch 'wip/chergert/remove-zero-suffix-array' into 'master'

ngl: remove unnecessary suffix array

See merge request GNOME/gtk!3254

5 years agoUpdate Catalan translation
Jordi Mas [Wed, 3 Mar 2021 21:31:04 +0000 (22:31 +0100)]
Update Catalan translation

5 years agongl: remove unnecessary suffix array
Christian Hergert [Wed, 3 Mar 2021 21:03:24 +0000 (13:03 -0800)]
ngl: remove unnecessary suffix array

We didn't end up using this in the final version, so we can just delete
it and avoid MSVC issues.

5 years agoMerge branch 'bilelmoussaoui/annotations-fix' into 'master'
Matthias Clasen [Wed, 3 Mar 2021 15:11:00 +0000 (15:11 +0000)]
Merge branch 'bilelmoussaoui/annotations-fix' into 'master'

update annotation of gtk_single_selection_get_selected_item

See merge request GNOME/gtk!3253

5 years agogtk: update annotation of gtk_single_selection_get_selected_item
Bilal Elmoussaoui [Wed, 3 Mar 2021 13:07:22 +0000 (13:07 +0000)]
gtk: update annotation of gtk_single_selection_get_selected_item

5 years agoMerge branch 'wip/exalm/headerbar-css' into 'master'
Matthias Clasen [Wed, 3 Mar 2021 13:11:22 +0000 (13:11 +0000)]
Merge branch 'wip/exalm/headerbar-css' into 'master'

Header bar CSS tweaks

See merge request GNOME/gtk!3252

5 years agoadwaita: Remove the nested headerbars hack
Alexander Mikhaylenko [Wed, 3 Mar 2021 12:35:15 +0000 (17:35 +0500)]
adwaita: Remove the nested headerbars hack

We clip the window now, it's not necessary anymore.

5 years agoadwaita: Remove headerbar sheen on backdrop
Alexander Mikhaylenko [Wed, 3 Mar 2021 12:33:42 +0000 (17:33 +0500)]
adwaita: Remove headerbar sheen on backdrop

It's gone from active windows since c9807f5afed5b6a10987905eea331b926f436017,
but was still there in backdrop.

5 years agoMerge branch 'label-mnemonic-fix' into 'master'
Matthias Clasen [Wed, 3 Mar 2021 12:00:37 +0000 (12:00 +0000)]
Merge branch 'label-mnemonic-fix' into 'master'

label: Fix markup parsing interactions

See merge request GNOME/gtk!3250

5 years agolabel: Fix markup parsing interactions
Matthias Clasen [Wed, 3 Mar 2021 03:30:11 +0000 (22:30 -0500)]
label: Fix markup parsing interactions

We were not handling mnemonics vs markup right
in all cases. Rewrite the _-stripping code to
do it during the link parsing, instead of as
a separate function. This avoids the issue of
stripping _ from attribute names in markup.

Add tests.

Fixes: 3706
5 years agoMerge branch 'fix-glyph-serialization' into 'master'
Matthias Clasen [Tue, 2 Mar 2021 20:31:09 +0000 (20:31 +0000)]
Merge branch 'fix-glyph-serialization' into 'master'

rendernode: Fix glyph serialization

Closes #3710

See merge request GNOME/gtk!3248

5 years agorendernode: Fix glyph serialization
Matthias Clasen [Tue, 2 Mar 2021 16:32:29 +0000 (11:32 -0500)]
rendernode: Fix glyph serialization

We serializing to a string of ASCII, we need to
escape some chars, such as '\' and '"'.

Fixes: #3710
5 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Tue, 2 Mar 2021 03:34:49 +0000 (03:34 +0000)]
Update Kazakh translation

(cherry picked from commit 62e9dff5361a805ac73ac7312791e090d3280399)

5 years agoMerge branch 'wip/chergert/fix-ngl-gles' into 'master'
Matthias Clasen [Tue, 2 Mar 2021 00:37:00 +0000 (00:37 +0000)]
Merge branch 'wip/chergert/fix-ngl-gles' into 'master'

ngl: fix typo from NGL rename

See merge request GNOME/gtk!3246

5 years agongl: fix typo from NGL rename
Christian Hergert [Mon, 1 Mar 2021 18:28:26 +0000 (10:28 -0800)]
ngl: fix typo from NGL rename

5 years agoMerge branch 'submodules' into 'master'
Matthias Clasen [Mon, 1 Mar 2021 16:01:25 +0000 (16:01 +0000)]
Merge branch 'submodules' into 'master'

Allow GTK4 to be added as a subproject

See merge request GNOME/gtk!3242

5 years agoMerge branch 'broadway-guint32' into 'master'
Matthias Clasen [Sat, 27 Feb 2021 23:16:28 +0000 (23:16 +0000)]
Merge branch 'broadway-guint32' into 'master'

broadway: Restore guint32 type for memory size

Closes #3702

See merge request GNOME/gtk!3244

5 years agobroadway: Restore guint32 type for memory size
Rafał Dzięgiel [Sat, 27 Feb 2021 22:43:01 +0000 (23:43 +0100)]
broadway: Restore guint32 type for memory size

guint32 is used as part of the protocol in broadway backend.
Memory size declared with it was mistakenly replaced with size_t type
which does not guarantee being 32bit on all platforms, leading to a crash.

5 years agoUpdate Finnish translation
Jiri Grönroos [Fri, 26 Feb 2021 12:09:44 +0000 (12:09 +0000)]
Update Finnish translation

(cherry picked from commit 3cb5a831e386bd26adba9089b09c200d2d38ea8a)

5 years agoAllow GTK4 to be added as a subproject
BogDan Vatra [Fri, 26 Feb 2021 07:27:02 +0000 (09:27 +0200)]
Allow GTK4 to be added as a subproject

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Thu, 25 Feb 2021 14:28:49 +0000 (14:28 +0000)]
Update Turkish translation

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Thu, 25 Feb 2021 14:02:50 +0000 (14:02 +0000)]
Update Turkish translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 25 Feb 2021 12:25:02 +0000 (12:25 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

imcontext: Fixes to the state machine

See merge request GNOME/gtk!3238

5 years agoMerge branch 'wip/carlosg/touchpad-gesture-devices' into 'master'
Matthias Clasen [Thu, 25 Feb 2021 12:23:26 +0000 (12:23 +0000)]
Merge branch 'wip/carlosg/touchpad-gesture-devices' into 'master'

gdk/wayland: Assign logical pointer to touchpad gesture events

See merge request GNOME/gtk!3240

5 years agoUpdate Finnish translation
Jiri Grönroos [Thu, 25 Feb 2021 10:46:35 +0000 (10:46 +0000)]
Update Finnish translation

(cherry picked from commit 0fd0b00ec9b5a886d37529b1018996c966fdd48f)

5 years agogdk/wayland: Assign logical pointer to touchpad gesture events
Carlos Garnacho [Wed, 24 Feb 2021 23:47:09 +0000 (00:47 +0100)]
gdk/wayland: Assign logical pointer to touchpad gesture events

These events don't make sense on physical devices (for starters, they
are relative to the logical pointer position). Use this device for
those events, also happens to be what the upper parts expect of them.

5 years agoMerge branch 'bilelmoussaoui/gdk-draw-context' into 'master'
Matthias Clasen [Wed, 24 Feb 2021 22:28:47 +0000 (22:28 +0000)]
Merge branch 'bilelmoussaoui/gdk-draw-context' into 'master'

gdk: drop the latest mention of DrawingContext

See merge request GNOME/gtk!3232

5 years agoimcontext: Fixes to the state machine
Matthias Clasen [Wed, 24 Feb 2021 18:31:31 +0000 (13:31 -0500)]
imcontext: Fixes to the state machine

It turns out that we we were sometimes emitting
preedit-end multiple times, and sometimes not at
all. Same for preedit-start. To fix this up, introduce
a in_compose_sequence flag, maintain it, and use it
in the right places.

After these changes, both

C-S-u 1 2 3 Enter
Compose a e

generate the right signals:

preedit-start, preedit-changed,..., preedit-end, commit

5 years agoMerge branch 'wip/carlosg/mark-settings-valid-again' into 'master'
Carlos Garnacho [Wed, 24 Feb 2021 16:12:13 +0000 (16:12 +0000)]
Merge branch 'wip/carlosg/mark-settings-valid-again' into 'master'

gdk/wayland: Make more matched settings from the portal as valid

See merge request GNOME/gtk!3236

5 years agogdk/wayland: Make more matched settings from the portal as valid
Carlos Garnacho [Wed, 24 Feb 2021 15:36:19 +0000 (16:36 +0100)]
gdk/wayland: Make more matched settings from the portal as valid

Commit 97b5fad1315 was a forward port from a gtk3 patch, but the hunk
was applied on the wrong bits of code.

Ensure the initialization paths also do mark settings read from the
portal as valid, so the checks for optional/newer settings actually have
the expected result. It is also desirable to mark settings as valid
after configuration changes (as that patch did effectively do), but not
enough to fix all situations.

5 years ago4.1.1
Matthias Clasen [Wed, 24 Feb 2021 01:58:58 +0000 (20:58 -0500)]
4.1.1

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 24 Feb 2021 01:57:47 +0000 (01:57 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

composetable: Remove some redundant code

See merge request GNOME/gtk!3234

5 years agoMerge branch 'wip/chergert/glproto' into 'master'
Matthias Clasen [Wed, 24 Feb 2021 01:14:14 +0000 (01:14 +0000)]
Merge branch 'wip/chergert/glproto' into 'master'

gsk: add OpenGL based GskNglRenderer

See merge request GNOME/gtk!3225

5 years agoUpdated Galician translations
Fran Dieguez [Wed, 24 Feb 2021 00:51:12 +0000 (01:51 +0100)]
Updated Galician translations

5 years agocomposetable: Remove some redundant code
Matthias Clasen [Wed, 24 Feb 2021 00:14:26 +0000 (19:14 -0500)]
composetable: Remove some redundant code

Pointed out by Peter Bloomfield.

5 years agoinspector: Fix a typo
Matthias Clasen [Tue, 23 Feb 2021 23:37:32 +0000 (18:37 -0500)]
inspector: Fix a typo

When selecting the "ngl" renderer, the inspector was
saying Renderer: Unknown, due to a typo. Fix that.

5 years agogsk: Replace a last instance of "next"
Matthias Clasen [Tue, 23 Feb 2021 23:36:41 +0000 (18:36 -0500)]
gsk: Replace a last instance of "next"

The output of GSK_RENDERER=help was still talking about
the "next" renderer, while actually looking for "ngl".

5 years agogsk: add OpenGL based GskNglRenderer
Christian Hergert [Sat, 19 Dec 2020 01:36:59 +0000 (17:36 -0800)]
gsk: add OpenGL based GskNglRenderer

The primary goal here was to cleanup the current GL renderer to make
maintenance easier going forward. Furthermore, it tracks state to allow
us to implement more advanced renderer features going forward.

Reordering

This renderer will reorder batches by render target to reduce the number
of times render targets are changed.

In the future, we could also reorder by program within the render target
if we can determine that vertices do not overlap.

Uniform Snapshots

To allow for reordering of batches all uniforms need to be tracked for
the programs. This allows us to create the full uniform state when the
batch has been moved into a new position.

Some care was taken as it can be performance sensitive.

Attachment Snapshots

Similar to uniform snapshots, we need to know all of the texture
attachments so that we can rebind them when necessary.

Render Jobs

To help isolate the process of creating GL commands from the renderer
abstraction a render job abstraction was added. This could be extended
in the future if we decided to do tiling.

Command Queue

Render jobs create batches using the command queue. The command queue
will snapshot uniform and attachment state so that it can reorder
batches right before executing them.

Currently, the only reordering done is to ensure that we only visit
each render target once. We could extend this by tracking vertices,
attachments, and others.

This code currently uses an inline array helper to reduce overhead
from GArray which was showing up on profiles. It could be changed to
use GdkArray without too much work, but had roughly double the
instructions. Cycle counts have not yet been determined.

GLSL Programs

This was simplified to use XMACROS so that we can just extend one file
(gskglprograms.defs) instead of multiple places. The programs are added
as fields in the driver for easy access.

Driver

The driver manages textures, render targets, access to atlases,
programs, and more. There is one driver per display, by using the
shared GL context.

Some work could be done here to batch uploads so that we make fewer
calls to upload when sending icon theme data to the GPU. We'd need
to keep a copy of the atlas data for such purposes.

5 years agoUpdated Danish translation of gtk-properties
Ask Hjorth Larsen [Tue, 23 Feb 2021 00:23:03 +0000 (01:23 +0100)]
Updated Danish translation of gtk-properties

5 years agoUpdated Danish translation
Ask Hjorth Larsen [Tue, 23 Feb 2021 00:23:03 +0000 (01:23 +0100)]
Updated Danish translation

5 years agogdk: drop the latest mention of DrawingContext
Bilal Elmoussaoui [Mon, 22 Feb 2021 22:15:14 +0000 (22:15 +0000)]
gdk: drop the latest mention of DrawingContext

5 years agoMerge branch 'compose-warning' into 'master'
Matthias Clasen [Mon, 22 Feb 2021 20:31:19 +0000 (20:31 +0000)]
Merge branch 'compose-warning' into 'master'

imcontext: Take out the warnings

See merge request GNOME/gtk!3230

5 years agoimcontext: Take out the warnings
Matthias Clasen [Mon, 22 Feb 2021 20:00:58 +0000 (15:00 -0500)]
imcontext: Take out the warnings

Don't warn about Compose file constructs we don't
support. We haven't supported these for a long time,
and nobody has every complained. No need to wake
up sleeping dogs.

5 years agoMerge branch 'SilverRainZ-master-patch-42810' into 'master'
Timm Bäder [Mon, 22 Feb 2021 08:20:34 +0000 (08:20 +0000)]
Merge branch 'SilverRainZ-master-patch-42810' into 'master'

gtk-demo: Fix typo GtkKabel -> GtkLabel

See merge request GNOME/gtk!3229

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 21 Feb 2021 17:56:30 +0000 (17:56 +0000)]
Update Turkish translation

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 21 Feb 2021 17:51:14 +0000 (17:51 +0000)]
Update Turkish translation

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 21 Feb 2021 16:27:09 +0000 (16:27 +0000)]
Update Turkish translation

5 years agogtk-demo: Fix typo GtkKabel -> GtkLabel
Shengyu Zhang [Sun, 21 Feb 2021 16:20:22 +0000 (16:20 +0000)]
gtk-demo: Fix typo GtkKabel -> GtkLabel

5 years agoUpdate POTFILES.in
Piotr Drąg [Sun, 21 Feb 2021 11:50:44 +0000 (12:50 +0100)]
Update POTFILES.in

5 years agoMerge branch 'wip/chergert/macos-gl-opaque-context' into 'master'
Matthias Clasen [Sat, 20 Feb 2021 02:37:52 +0000 (02:37 +0000)]
Merge branch 'wip/chergert/macos-gl-opaque-context' into 'master'

macos: make OpenGL context opaque when possible

See merge request GNOME/gtk!3226

5 years agoMerge branch 'wip/chergert/fix-macos-resizing' into 'master'
Matthias Clasen [Sat, 20 Feb 2021 02:32:15 +0000 (02:32 +0000)]
Merge branch 'wip/chergert/fix-macos-resizing' into 'master'

macos: fix resizing of resizable windows on macOS

See merge request GNOME/gtk!3227

5 years agomacos: fix resizing of resizable windows on macOS
Christian Hergert [Fri, 19 Feb 2021 23:34:18 +0000 (15:34 -0800)]
macos: fix resizing of resizable windows on macOS

5 years agomacos: make OpenGL context opaque when possible
Christian Hergert [Fri, 19 Feb 2021 21:18:42 +0000 (13:18 -0800)]
macos: make OpenGL context opaque when possible

If our opaque region is the entire surface, then we can make the OpenGL
context opaque like we do for decorated windows. This improves performance
as the compositor does not need to blend the surface with the contents
behind the window.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 19 Feb 2021 14:41:36 +0000 (14:41 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!3224

5 years agoUpdate British English translation
Zander Brown [Fri, 19 Feb 2021 14:26:09 +0000 (14:26 +0000)]
Update British English translation

(cherry picked from commit 1f18d2638f5b43ead535f75ae5dfad959fe831f1)

5 years agoUpdate British English translation
Zander Brown [Fri, 19 Feb 2021 14:24:14 +0000 (14:24 +0000)]
Update British English translation

(cherry picked from commit 6f263318648f35ee00e46d89c66975539de21ae7)

5 years agogtk-demo: Make --version match about
Matthias Clasen [Fri, 19 Feb 2021 03:52:15 +0000 (22:52 -0500)]
gtk-demo: Make --version match about

Print the same version information in --version
that we show in the about dialog.

5 years agowidget-factory: Make --version match about
Matthias Clasen [Fri, 19 Feb 2021 03:51:35 +0000 (22:51 -0500)]
widget-factory: Make --version match about

Print the same version information in --version
that we show in the about dialog.

5 years agoimwayland: Be careful about cursor positions
Matthias Clasen [Thu, 18 Feb 2021 20:33:01 +0000 (15:33 -0500)]
imwayland: Be careful about cursor positions

We don't want to hand out cursor positions based on
the original preedit text and then tweak the text to
be different.

5 years agoMerge branch 'unintrusive-compose-preedit' into 'master'
Matthias Clasen [Thu, 18 Feb 2021 17:36:08 +0000 (17:36 +0000)]
Merge branch 'unintrusive-compose-preedit' into 'master'

Unintrusive compose preedit

See merge request GNOME/gtk!3220

5 years agoMerge branch 'wip/carlosg/font-setting-lookups' into 'master'
Matthias Clasen [Thu, 18 Feb 2021 17:18:37 +0000 (17:18 +0000)]
Merge branch 'wip/carlosg/font-setting-lookups' into 'master'

gdk/wayland: Look for font settings recursively

Closes #3680

See merge request GNOME/gtk!3218

5 years agoimwayland: Tweak preedit text
Matthias Clasen [Thu, 18 Feb 2021 16:31:04 +0000 (11:31 -0500)]
imwayland: Tweak preedit text

Tweak the preedit text we get from IBus (via the compositor) to
match what GtkIMContextSimple produces for Compose sequences now.

This provides a unified experience.

5 years agoimcontext: Make Compose preedit less intrusive
Matthias Clasen [Thu, 18 Feb 2021 00:59:28 +0000 (19:59 -0500)]
imcontext: Make Compose preedit less intrusive

Tweak the preedit display for Compose sequences to
be not so distracting. We only show the Compose key
when it occurs in the middle of the sequence or is
the only key so far, and use · instead of ⎄ for it.

Also, make sure to display dead keys more adequately.

5 years agogdk/wayland: Look for font settings recursively
Carlos Garnacho [Thu, 18 Feb 2021 15:12:53 +0000 (16:12 +0100)]
gdk/wayland: Look for font settings recursively

Use the infrastructure already available to look up keys, instead.
This does the right thing and looks up the setting across all
sources.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3680
5 years agoMerge branch 'wip/exalm/root' into 'master'
Matthias Clasen [Thu, 18 Feb 2021 14:38:50 +0000 (14:38 +0000)]
Merge branch 'wip/exalm/root' into 'master'

widget: Don't assume GtkWindow root in gtk_widget_propagate_state()

See merge request GNOME/gtk!3217

5 years agowidget: Don't assume GtkWindow root in gtk_widget_propagate_state()
Alexander Mikhaylenko [Thu, 18 Feb 2021 08:41:41 +0000 (13:41 +0500)]
widget: Don't assume GtkWindow root in gtk_widget_propagate_state()

Avoid crashes with GtkDragIcon children.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 18 Feb 2021 05:52:44 +0000 (05:52 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3679 and #3678

See merge request GNOME/gtk!3216

5 years agotext: Fix sticky preedit attrs
Matthias Clasen [Thu, 18 Feb 2021 04:25:31 +0000 (23:25 -0500)]
text: Fix sticky preedit attrs

In some cases, we were inadvertedly merging the
preedit attributes into priv->attrs, instead of
keeping them separate. This was causing the underlines
to grow beyond the preedit and never go away. One
place where this was showing up is the fontchooser
preview.

Fixes: #3679
5 years agoimwayland: Return limited preedit attributes
Matthias Clasen [Thu, 18 Feb 2021 03:57:41 +0000 (22:57 -0500)]
imwayland: Return limited preedit attributes

It should not matter, but it is the right thing to
do to limit the preedit attributes to the length
of the preedit text.

5 years agoimcontext: Enable font fallback for preedit
Matthias Clasen [Thu, 18 Feb 2021 03:08:43 +0000 (22:08 -0500)]
imcontext: Enable font fallback for preedit

Not doing so only invites hexboxes.

Fixes: #3678
5 years agopaned: Add a paned handle class
Matthias Clasen [Thu, 18 Feb 2021 02:45:33 +0000 (21:45 -0500)]
paned: Add a paned handle class

Instead of bending GtkGizmo to the breaking point,
split off a GtkPanedHandle class that just does
what is needed here. Its simpler, and lets us keep
GtkGizmo simpler too. Everybody wins.

5 years agopopovercontent: Few small fixes
Matthias Clasen [Thu, 18 Feb 2021 02:44:53 +0000 (21:44 -0500)]
popovercontent: Few small fixes

Forgot to include config.h. Oops, and we make things
a bit shorter still.